package com.sys.console.pojo;

import java.util.List;

public class SysAuthorityTree {
	
	private String id;//ID
    private String name;//节点名称
    private String pId;//父ID
    private String url;//地址
    private String target;//点击弹出事件
    private Boolean open;//是否展开节点,
    private Boolean checked;//是否选中
    
    private List<SysAuthorityTree> children;
    
    public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getpId() {
		return pId;
	}

	public void setpId(String pId) {
		this.pId = pId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public Boolean isOpen() {
		if(open==null){
			this.open = true;
		}
		return open;
	}

	public void setOpen(Boolean open) {
		this.open = open;
	}

	public Boolean getChecked() {
		if(this.checked==null){
			this.checked = false;
		}
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	public List<SysAuthorityTree> getChildren() {
		return children;
	}

	public void setChildren(List<SysAuthorityTree> children) {
		this.children = children;
	}
	
}